﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CamDo.DAO;

namespace CamDo.BUL
{
    class QuanLyNguoiDung
    {
        private NguoiDung nguoiDungDAO;
        private String error;

        public String Error
        {
            get { return error; }
            set { error = value; }
        }
        public QuanLyNguoiDung()
        {
            this.nguoiDungDAO = new NguoiDung();
            this.error = "";
        }
        public Boolean isLogin(String userName, String passWord )
        {
            if (this.nguoiDungDAO.checkLogin(userName, passWord))
            {
                return true;
            }
            else
            {
                this.error = this.nguoiDungDAO.Error;
                return false;
            }
        }

    }
 
     
}
